import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import router from "./router"
import pinia from "./store"
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import "./mock"  //引入Mock
import axios from "./utils/axios"
import * as ElementPlusIconsVue from '@element-plus/icons-vue';
const app = createApp(App);
// 全局注册图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}


app.use(router);
app.use(pinia);
app.use(ElementPlus);

//全局注册axios
app.config.globalProperties.$axios = axios;

app.mount("#app");
